/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.blockchain.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * ddc流转记录
 *
 * @author pigx code generator
 * @date 2022-08-01 08:51:17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("ddc_transfer")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ddc流转记录")
public class DdcTransfer extends Model<DdcTransfer> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "主键")
	private Long id;

	/**
	 * ddc id
	 */
	@ApiModelProperty(value = "ddc id")
	private String token;

	/**
	 * 发起方
	 */
	@ApiModelProperty(value = "发起方")
	private String fromAddress;

	/**
	 * 接收方
	 */
	@ApiModelProperty(value = "接收方")
	private String toAddress;

	/**
	 * 交易时间
	 */
	@ApiModelProperty(value = "交易时间")
	private LocalDateTime txTime;

	/**
	 * 交易Hash
	 */
	@ApiModelProperty(value = "交易Hash")
	private String txHash;

	/**
	 * 区块高度
	 */
	@ApiModelProperty(value = "区块高度")
	private Long blockNumber;

	/**
	 * 份数
	 */
	@ApiModelProperty(value = "份数")
	private Integer copies;

	/**
	 * DDC类型
	 */
	@ApiModelProperty(value = "DDC类型")
	private Integer ddcType;

	/**
	 * 流水类型
	 */
	@ApiModelProperty(value = "流水类型:[1-铸币,2-转账]")
	private Integer type;

}
